Looping version of my tarcles solve